// xx_tool.h
#ifndef XX_TOOL_H
#define XX_TOOL_H

#include <Arduino.h>

bool isNull(const char *str);
void print_char(const char *str);
void print_int(int num);
// wifi
void xx_mqtt_setup();
void xx_mqtt_loop();
void xx_mqtt_setOnMessageReceived(void (*func)(String, String));
void xx_mqtt_sendMessage(String topic, String message);

// led control
enum LightMode
{
    OFF,
    WHITE,
    WARM_WHITE,
    COLD_BLUE,
    PINK,
    PURPLE,
    RAINBOW_FLOW
};
void xx_led_setup();
void xx_let_setLightMode(LightMode mode);

#endif // XX_TOOL_H